<?php 
/* SVN FILE: $Id$ */
/* Feedback Test cases generated on: 2009-05-30 22:05:25 : 1243736845*/
App::import('Model', 'Feedback');

class FeedbackTestCase extends CakeTestCase {
	var $Feedback = null;
	var $fixtures = array('app.feedback', 'app.order_info', 'app.feedback', 'app.user', 'app.feedback');

	function startTest() {
		$this->Feedback =& ClassRegistry::init('Feedback');
	}

	function testFeedbackInstance() {
		$this->assertTrue(is_a($this->Feedback, 'Feedback'));
	}

	function testFeedbackFind() {
		$this->Feedback->recursive = -1;
		$results = $this->Feedback->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Feedback' => array(
			'id'  => 1,
			'user_name'  => 'Lorem ipsum dolor sit amet',
			'user_email'  => 'Lorem ipsum dolor sit amet',
			'msg_title'  => 'Lorem ipsum dolor sit amet',
			'msg_type'  => 1,
			'msg_content'  => 'Lorem ipsum dolor sit amet, aliquet feugiat. Convallis morbi fringilla gravida,phasellus feugiat dapibus velit nunc, pulvinar eget sollicitudin venenatis cum nullam,vivamus ut a sed, mollitia lectus. Nulla vestibulum massa neque ut et, id hendrerit sit,feugiat in taciti enim proin nibh, tempor dignissim, rhoncus duis vestibulum nunc mattis convallis.',
			'msg_time'  => '2009-05-30 22:27:23',
			'message_img'  => 'Lorem ipsum dolor sit amet',
			'order_info_id'  => 1,
			'feedback_id'  => 1,
			'user_id'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>